package com.jojo.bubble.service.impl;

import com.jojo.bubble.entity.AuthUser;
import com.jojo.bubble.dao.AuthUserDao;
import com.jojo.bubble.service.AuthUserService;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * 用户权限(AuthUser)表服务实现类
 *
 * @author jojo
 * @since 2023-07-21 04:47:27
 */
@Service("authUserService")
public class AuthUserServiceImpl implements AuthUserService {
    @Resource
    private AuthUserDao authUserDao;

    @Override
    public int count(AuthUser record) {
        return this.authUserDao.count(record);
    }

    @Override
    public int insert(AuthUser record) {
        return this.authUserDao.insert(record);
    }

    @Override
    public int update(AuthUser record) {
        return this.authUserDao.update(record);
    }

    @Override
    public AuthUser getInfo(int id) {
        return this.authUserDao.queryById(id);
    }

    @Override
    public List<AuthUser> getList(AuthUser record) {
        return this.authUserDao.getList(record);
    }

    @Override
    public int delete(int id) {
        return this.authUserDao.delete(id);
    }
}
